home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Hyper
/
Q-R
/
Recognize.94.cpt
/
Recognize .94
/
card_5475.txt
< prev
next >
Wrap
Text File
|
1988-11-13
|
3KB
|
132 lines
-- card: 5475 from stack: in.94
-- bmap block id: 0
-- flags: 0000
-- background id: 3394
-- name: getdata
----- HyperTalk script -----
on opencard
global theline
put empty into bkgnd field screen
put empty into theline
put "Now updating your user stats" into bkgnd field "Status"
end opencard
on closecard
show bkgnd button "Node 1"
show bkgnd button "Node 2"
end closecard
on idle
global getdata,receive,theline
put empty into newln
put empty into theString
if receive is true then
repeat 1
put empty into newln
put recvUpTo(return,5,"") into newIn
put newIn after theString
end repeat
if the length of theString > 0 then
put theString after bkgnd field "screen"
repeat while the number of lines in bkgnd field "screen" > 24
delete first line of bkgnd field "screen"
end repeat
if thestring contains "RETURN" then sendsport 1,false,return
if getdata is true then
add 1 to theline
if theline is 18 then dothedatapart
end if
end if
end if
end idle
on dothedatapart
global startseconds
put the seconds into startseconds
repeat 4
delete line 1 of bkgnd field screen
end repeat
global theusername, thecalls,todaycalls,lastuser,yourlast,thiscall
global yourcalls,posts,email,uploads,downloads
put word 3 to 4 of line 1 of bkgnd field screen into theusername
put word 2 of line 2 of bkgnd field screen into thecalls
delete char 1 of thecalls
delete last word of thecalls
put word 1 of line 3 of bkgnd field screen into todaycalls
put word 2 to 4 of line 4 of bkgnd field screen into lastuser
repeat 5
delete char 1 of lastuser
end repeat
put line 5 of bkgnd field screen into yourlast
repeat 15
delete char 1 of yourlast
end repeat
put line 6 of bkgnd field screen into thiscall
repeat 10
delete char 1 of thiscall
end repeat
put word 4 to 5 of line 7 of bkgnd field screen into yourcalls
put last word of line 9 of bkgnd field screen into posts
repeat 6
delete char 1 of posts
end repeat
put last word of line 10 of bkgnd field screen into email
repeat 5
delete char 1 of email
end repeat
put last word of line 11 of bkgnd field screen into uploads
repeat 8
delete char 1 of uploads
end repeat
put last word of line 12 of bkgnd field screen into downloads
repeat 10
delete char 1 of downloads
end repeat
beep
putthedata
beep
go to card mainmenu
end dothedatapart
on putthedata
global theusername,thiscall,yourcalls,posts,email,uploads,downloads
go to card "User Stats"
put theusername into card field username
put thiscall into card field lastcall
put yourcalls into card field calls
put posts into card field "posts"
put email into card field "Email"
put uploads into card field "Uploads"
put downloads into card field "Downloads"
end putthedata
-- part contents for background part 10
----- text -----
Now updating your user stats
-- part contents for background part 3
----- text -----
Welcome back CW NORMAN
Call #1710
33 calls so far today
Last User:SYSOP
Your last call:5:17:36 PM on 11/12/88
This call:7:51:57 PM on 11/12/88
You have called 21 times.
Your:
Posts:3
Mail sent:4
Uploads:0
Downloads:38